package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.Plan;
import com.indusfo.spc.pojo.PlanBatchno;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PlanBatchnoMapper {

    // 查询
    List<PlanBatchno> selectPlanBatchno(PlanBatchno planBatchno);
    // 计数
    int countPlanBatchno(PlanBatchno planBatchno);
    // 批量删除
    int delPlanBatchno(@Param("planBatchnoIds")Long[] planBatchnoIds);
    // 打印
    int printPlanBatchno(@Param("planBatchnoIds")Long[] planBatchnoIds);
    // 查询 批次 投产数量
    PlanBatchno selectPlanBatchnoNum(PlanBatchno planBatchno);
    // 模糊查询任务单
    Plan queryPlan(Plan plan);

    int insertSelective(@Param("planBatchno")PlanBatchno planBatchno,@Param("list") List<String> list);
    // 查询条码规则
    Integer queryRuleId(@Param("planId")Integer planId);
}